package cn.java63.biz;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext ac=new ClassPathXmlApplicationContext("spring-aop.xml");

        UserService userService= (UserService)ac.getBean("userService");
        System.out.println(userService.getClass().getName()+"?>>>>>>>>>>>>>>>>>>>..");
        User user=new User(1000L,"老吴","12233","43333","44444444");
        boolean r=userService.add(user);
        System.out.println("方法返回了："+r);
        boolean r2=userService.del(3000L);
        System.out.println("删除的结果是："+r2);
    }
}
